<div id="activity_stats">
    <p> </p>
    <? if(count($this->paginator)): ?>
    <div class="widget">
        <div class="widget_title"><span class="iconsweet">&</span>
            <h5><?= $this->title; ?></h5>
        </div>
        <div class="widget_body">
            <table border="0" width="100%" class="activity_datatable" cellspacing="0" cellpadding="8">
                <tr>
                    <th width="5%"> ID </th>
                    <th width="60%"> Аты - Жөнү </th>
                    <th width="20%"> Жери </th>
                    <th width="15%"> Маселе </th>
                </tr>
                <? $i = 1;?>
                <? foreach ($this->paginator as $value): ?>
                <tr>
                    <td> <?= $i ++; ?></td>
                    <td> <?= $value['user_name']; ?> <?=$value['user_surname']; ?> </td>
                    <td> <?= $value['user_from']; ?></td>
                    <td><?= $value['count']; ?></td>
                   
                </tr>
                <? endforeach; ?>
            </table>
        </div>
    </div>
        <?= $this->paginationControl($this->paginator, 'Sliding', 
                'partials/my_paginator.phtml'); ?>
    <? else :?>
        Рейтингте дагы колдонуучулар жок ...
    <? endif ?>
</div>